package thirteen;

import java.io.File;

public class DeleteFileDirDemo {
    public static void main(String[] args) {
        File file = new File("./a/b/c");
        if (file.exists()) {
            file.delete();
            if (file.exists()){
                System.out.println("文件夹不为空，删除失败");
            }else {
                System.out.println("删除成功");
            }
        }else {
            System.out.println("文件夹不存在");
        }
    }

}
